package com.kedou.sdk.params;

import android.os.Parcel;
import android.os.Parcelable;



/**
 * Created by Administrator on 2017/6/6 0006.
 */

public class SendVerifyReuqestParams extends BaseRequestParams implements Parcelable {

    private static final String SERVICE = "sms/send";



    /**
     * 11位手机号，
     * type类型为1和3，即为手机号或者登录验证类型时，此值不能够为空
     */
    private String mobile;


    private String sms_type;

    public SendVerifyReuqestParams() {
    }



    public SendVerifyReuqestParams(String phone, String type) {
        this.mobile = phone;
        this.sms_type = type;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getSms_type() {
        return sms_type;
    }

    public void setSms_type(String sms_type) {
        this.sms_type = sms_type;
    }

    @Override
    public String getServiceString() {
        return SERVICE;
    }



    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeString(this.mobile);
        dest.writeString(this.sms_type);

    }

    protected SendVerifyReuqestParams(Parcel in) {
        super(in);
        this.mobile = in.readString();
        this.sms_type = in.readString();

    }

    public static final Creator<SendVerifyReuqestParams> CREATOR = new Creator<SendVerifyReuqestParams>() {
        @Override
        public SendVerifyReuqestParams createFromParcel(Parcel source) {
            return new SendVerifyReuqestParams(source);
        }

        @Override
        public SendVerifyReuqestParams[] newArray(int size) {
            return new SendVerifyReuqestParams[size];
        }
    };
}
